import request from '@/utils/request';

export function getExams() {
    return request({
        url: "/api/common/exam/exams",
        method: 'get'
    });
}


export async function getQuestions(params) {
    let response = await request({
        url: "/realmock",
        method: "post",
        data: params
    });
    return response;
}

export async function submitQuestion(params){
    return await request({
        url: "/realmock/submitQuestion",
        method: "post",
        data: params
    });
}


export async function submitFavorite(params){
    return await request({
        url: "/realmock/submitFavorite",
        method: "post",
        data: params
    });
}

export async function submitNote(params){
    return await request({
        url: "/realmock/submitNote",
        method: "post",
        data: params
    });
}
